﻿using System;
using System.Collections.Generic;
using IDAL;
using Model;

namespace BLL
{
    public class QCFixedCheck : BaseService<QCFixedCheckInfo>
    {
        private static readonly IQCFixedCheck dal = DALFactory.DataAccess.CreateQCFixedCheck();

        public override void SetCurrentRepository()
        {
            CurrentRepository = dal;
        }

        public IList<QCFixedCheckInfo> GetQCFixedChecksbySN(string productSN)
        {
            return dal.GetQCFixedChecksbySN(productSN);
        }

        public IList<QCFixedCheckInfo> GetQCFixedChecksbyDT(DateTime starttime, DateTime stoptime)
        {
            return dal.GetQCFixedChecksbyDT(starttime, stoptime);
        }

        public IList<QCFixedCheckInfo> GetQCFixedChecksbyPIDDT(string productTypeID, DateTime starttime, DateTime stoptime)
        {
            return dal.GetQCFixedChecksbyPIDDT(productTypeID, starttime, stoptime);
        }
    }
}
